package com.panda.mall.common.mallCoupon.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 专题商品表
* mall_coupon_home_spu
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_coupon_home_spu")
public class MallCouponHomeSpu extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 专题名称
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("专题名称")
    @Length(max= 255,message="编码长度不能超过255")
    private String name;
    /**
    * 专题id
    */
    @ApiModelProperty("专题id")
    private Long subjectId;
    /**
    * 标准商品id
    */
    @ApiModelProperty("标准商品id")
    private Long spuId;
    /**
    * 排序号
    */
    @ApiModelProperty("排序号")
    private Integer sort;

}
